package com.itcncp.ucenter.dao.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ItcsCarBrandInfoExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public ItcsCarBrandInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andFullnameIsNull() {
            addCriterion("fullname is null");
            return (Criteria) this;
        }

        public Criteria andFullnameIsNotNull() {
            addCriterion("fullname is not null");
            return (Criteria) this;
        }

        public Criteria andFullnameEqualTo(String value) {
            addCriterion("fullname =", value, "fullname");
            return (Criteria) this;
        }

        public Criteria andFullnameNotEqualTo(String value) {
            addCriterion("fullname <>", value, "fullname");
            return (Criteria) this;
        }

        public Criteria andFullnameGreaterThan(String value) {
            addCriterion("fullname >", value, "fullname");
            return (Criteria) this;
        }

        public Criteria andFullnameGreaterThanOrEqualTo(String value) {
            addCriterion("fullname >=", value, "fullname");
            return (Criteria) this;
        }

        public Criteria andFullnameLessThan(String value) {
            addCriterion("fullname <", value, "fullname");
            return (Criteria) this;
        }

        public Criteria andFullnameLessThanOrEqualTo(String value) {
            addCriterion("fullname <=", value, "fullname");
            return (Criteria) this;
        }

        public Criteria andFullnameLike(String value) {
            addCriterion("fullname like", value, "fullname");
            return (Criteria) this;
        }

        public Criteria andFullnameNotLike(String value) {
            addCriterion("fullname not like", value, "fullname");
            return (Criteria) this;
        }

        public Criteria andFullnameIn(List<String> values) {
            addCriterion("fullname in", values, "fullname");
            return (Criteria) this;
        }

        public Criteria andFullnameNotIn(List<String> values) {
            addCriterion("fullname not in", values, "fullname");
            return (Criteria) this;
        }

        public Criteria andFullnameBetween(String value1, String value2) {
            addCriterion("fullname between", value1, value2, "fullname");
            return (Criteria) this;
        }

        public Criteria andFullnameNotBetween(String value1, String value2) {
            addCriterion("fullname not between", value1, value2, "fullname");
            return (Criteria) this;
        }

        public Criteria andInitialIsNull() {
            addCriterion("initial is null");
            return (Criteria) this;
        }

        public Criteria andInitialIsNotNull() {
            addCriterion("initial is not null");
            return (Criteria) this;
        }

        public Criteria andInitialEqualTo(String value) {
            addCriterion("initial =", value, "initial");
            return (Criteria) this;
        }

        public Criteria andInitialNotEqualTo(String value) {
            addCriterion("initial <>", value, "initial");
            return (Criteria) this;
        }

        public Criteria andInitialGreaterThan(String value) {
            addCriterion("initial >", value, "initial");
            return (Criteria) this;
        }

        public Criteria andInitialGreaterThanOrEqualTo(String value) {
            addCriterion("initial >=", value, "initial");
            return (Criteria) this;
        }

        public Criteria andInitialLessThan(String value) {
            addCriterion("initial <", value, "initial");
            return (Criteria) this;
        }

        public Criteria andInitialLessThanOrEqualTo(String value) {
            addCriterion("initial <=", value, "initial");
            return (Criteria) this;
        }

        public Criteria andInitialLike(String value) {
            addCriterion("initial like", value, "initial");
            return (Criteria) this;
        }

        public Criteria andInitialNotLike(String value) {
            addCriterion("initial not like", value, "initial");
            return (Criteria) this;
        }

        public Criteria andInitialIn(List<String> values) {
            addCriterion("initial in", values, "initial");
            return (Criteria) this;
        }

        public Criteria andInitialNotIn(List<String> values) {
            addCriterion("initial not in", values, "initial");
            return (Criteria) this;
        }

        public Criteria andInitialBetween(String value1, String value2) {
            addCriterion("initial between", value1, value2, "initial");
            return (Criteria) this;
        }

        public Criteria andInitialNotBetween(String value1, String value2) {
            addCriterion("initial not between", value1, value2, "initial");
            return (Criteria) this;
        }

        public Criteria andParentidIsNull() {
            addCriterion("parentid is null");
            return (Criteria) this;
        }

        public Criteria andParentidIsNotNull() {
            addCriterion("parentid is not null");
            return (Criteria) this;
        }

        public Criteria andParentidEqualTo(Integer value) {
            addCriterion("parentid =", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotEqualTo(Integer value) {
            addCriterion("parentid <>", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidGreaterThan(Integer value) {
            addCriterion("parentid >", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidGreaterThanOrEqualTo(Integer value) {
            addCriterion("parentid >=", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidLessThan(Integer value) {
            addCriterion("parentid <", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidLessThanOrEqualTo(Integer value) {
            addCriterion("parentid <=", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidIn(List<Integer> values) {
            addCriterion("parentid in", values, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotIn(List<Integer> values) {
            addCriterion("parentid not in", values, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidBetween(Integer value1, Integer value2) {
            addCriterion("parentid between", value1, value2, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotBetween(Integer value1, Integer value2) {
            addCriterion("parentid not between", value1, value2, "parentid");
            return (Criteria) this;
        }

        public Criteria andLogoIsNull() {
            addCriterion("logo is null");
            return (Criteria) this;
        }

        public Criteria andLogoIsNotNull() {
            addCriterion("logo is not null");
            return (Criteria) this;
        }

        public Criteria andLogoEqualTo(String value) {
            addCriterion("logo =", value, "logo");
            return (Criteria) this;
        }

        public Criteria andLogoNotEqualTo(String value) {
            addCriterion("logo <>", value, "logo");
            return (Criteria) this;
        }

        public Criteria andLogoGreaterThan(String value) {
            addCriterion("logo >", value, "logo");
            return (Criteria) this;
        }

        public Criteria andLogoGreaterThanOrEqualTo(String value) {
            addCriterion("logo >=", value, "logo");
            return (Criteria) this;
        }

        public Criteria andLogoLessThan(String value) {
            addCriterion("logo <", value, "logo");
            return (Criteria) this;
        }

        public Criteria andLogoLessThanOrEqualTo(String value) {
            addCriterion("logo <=", value, "logo");
            return (Criteria) this;
        }

        public Criteria andLogoLike(String value) {
            addCriterion("logo like", value, "logo");
            return (Criteria) this;
        }

        public Criteria andLogoNotLike(String value) {
            addCriterion("logo not like", value, "logo");
            return (Criteria) this;
        }

        public Criteria andLogoIn(List<String> values) {
            addCriterion("logo in", values, "logo");
            return (Criteria) this;
        }

        public Criteria andLogoNotIn(List<String> values) {
            addCriterion("logo not in", values, "logo");
            return (Criteria) this;
        }

        public Criteria andLogoBetween(String value1, String value2) {
            addCriterion("logo between", value1, value2, "logo");
            return (Criteria) this;
        }

        public Criteria andLogoNotBetween(String value1, String value2) {
            addCriterion("logo not between", value1, value2, "logo");
            return (Criteria) this;
        }

        public Criteria andDepthIsNull() {
            addCriterion("depth is null");
            return (Criteria) this;
        }

        public Criteria andDepthIsNotNull() {
            addCriterion("depth is not null");
            return (Criteria) this;
        }

        public Criteria andDepthEqualTo(Byte value) {
            addCriterion("depth =", value, "depth");
            return (Criteria) this;
        }

        public Criteria andDepthNotEqualTo(Byte value) {
            addCriterion("depth <>", value, "depth");
            return (Criteria) this;
        }

        public Criteria andDepthGreaterThan(Byte value) {
            addCriterion("depth >", value, "depth");
            return (Criteria) this;
        }

        public Criteria andDepthGreaterThanOrEqualTo(Byte value) {
            addCriterion("depth >=", value, "depth");
            return (Criteria) this;
        }

        public Criteria andDepthLessThan(Byte value) {
            addCriterion("depth <", value, "depth");
            return (Criteria) this;
        }

        public Criteria andDepthLessThanOrEqualTo(Byte value) {
            addCriterion("depth <=", value, "depth");
            return (Criteria) this;
        }

        public Criteria andDepthIn(List<Byte> values) {
            addCriterion("depth in", values, "depth");
            return (Criteria) this;
        }

        public Criteria andDepthNotIn(List<Byte> values) {
            addCriterion("depth not in", values, "depth");
            return (Criteria) this;
        }

        public Criteria andDepthBetween(Byte value1, Byte value2) {
            addCriterion("depth between", value1, value2, "depth");
            return (Criteria) this;
        }

        public Criteria andDepthNotBetween(Byte value1, Byte value2) {
            addCriterion("depth not between", value1, value2, "depth");
            return (Criteria) this;
        }

        public Criteria andSalestateIsNull() {
            addCriterion("salestate is null");
            return (Criteria) this;
        }

        public Criteria andSalestateIsNotNull() {
            addCriterion("salestate is not null");
            return (Criteria) this;
        }

        public Criteria andSalestateEqualTo(String value) {
            addCriterion("salestate =", value, "salestate");
            return (Criteria) this;
        }

        public Criteria andSalestateNotEqualTo(String value) {
            addCriterion("salestate <>", value, "salestate");
            return (Criteria) this;
        }

        public Criteria andSalestateGreaterThan(String value) {
            addCriterion("salestate >", value, "salestate");
            return (Criteria) this;
        }

        public Criteria andSalestateGreaterThanOrEqualTo(String value) {
            addCriterion("salestate >=", value, "salestate");
            return (Criteria) this;
        }

        public Criteria andSalestateLessThan(String value) {
            addCriterion("salestate <", value, "salestate");
            return (Criteria) this;
        }

        public Criteria andSalestateLessThanOrEqualTo(String value) {
            addCriterion("salestate <=", value, "salestate");
            return (Criteria) this;
        }

        public Criteria andSalestateLike(String value) {
            addCriterion("salestate like", value, "salestate");
            return (Criteria) this;
        }

        public Criteria andSalestateNotLike(String value) {
            addCriterion("salestate not like", value, "salestate");
            return (Criteria) this;
        }

        public Criteria andSalestateIn(List<String> values) {
            addCriterion("salestate in", values, "salestate");
            return (Criteria) this;
        }

        public Criteria andSalestateNotIn(List<String> values) {
            addCriterion("salestate not in", values, "salestate");
            return (Criteria) this;
        }

        public Criteria andSalestateBetween(String value1, String value2) {
            addCriterion("salestate between", value1, value2, "salestate");
            return (Criteria) this;
        }

        public Criteria andSalestateNotBetween(String value1, String value2) {
            addCriterion("salestate not between", value1, value2, "salestate");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(String value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(String value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(String value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(String value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(String value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(String value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLike(String value) {
            addCriterion("price like", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotLike(String value) {
            addCriterion("price not like", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<String> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<String> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(String value1, String value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(String value1, String value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andYeartypeIsNull() {
            addCriterion("yeartype is null");
            return (Criteria) this;
        }

        public Criteria andYeartypeIsNotNull() {
            addCriterion("yeartype is not null");
            return (Criteria) this;
        }

        public Criteria andYeartypeEqualTo(Short value) {
            addCriterion("yeartype =", value, "yeartype");
            return (Criteria) this;
        }

        public Criteria andYeartypeNotEqualTo(Short value) {
            addCriterion("yeartype <>", value, "yeartype");
            return (Criteria) this;
        }

        public Criteria andYeartypeGreaterThan(Short value) {
            addCriterion("yeartype >", value, "yeartype");
            return (Criteria) this;
        }

        public Criteria andYeartypeGreaterThanOrEqualTo(Short value) {
            addCriterion("yeartype >=", value, "yeartype");
            return (Criteria) this;
        }

        public Criteria andYeartypeLessThan(Short value) {
            addCriterion("yeartype <", value, "yeartype");
            return (Criteria) this;
        }

        public Criteria andYeartypeLessThanOrEqualTo(Short value) {
            addCriterion("yeartype <=", value, "yeartype");
            return (Criteria) this;
        }

        public Criteria andYeartypeIn(List<Short> values) {
            addCriterion("yeartype in", values, "yeartype");
            return (Criteria) this;
        }

        public Criteria andYeartypeNotIn(List<Short> values) {
            addCriterion("yeartype not in", values, "yeartype");
            return (Criteria) this;
        }

        public Criteria andYeartypeBetween(Short value1, Short value2) {
            addCriterion("yeartype between", value1, value2, "yeartype");
            return (Criteria) this;
        }

        public Criteria andYeartypeNotBetween(Short value1, Short value2) {
            addCriterion("yeartype not between", value1, value2, "yeartype");
            return (Criteria) this;
        }

        public Criteria andProductionstateIsNull() {
            addCriterion("productionstate is null");
            return (Criteria) this;
        }

        public Criteria andProductionstateIsNotNull() {
            addCriterion("productionstate is not null");
            return (Criteria) this;
        }

        public Criteria andProductionstateEqualTo(String value) {
            addCriterion("productionstate =", value, "productionstate");
            return (Criteria) this;
        }

        public Criteria andProductionstateNotEqualTo(String value) {
            addCriterion("productionstate <>", value, "productionstate");
            return (Criteria) this;
        }

        public Criteria andProductionstateGreaterThan(String value) {
            addCriterion("productionstate >", value, "productionstate");
            return (Criteria) this;
        }

        public Criteria andProductionstateGreaterThanOrEqualTo(String value) {
            addCriterion("productionstate >=", value, "productionstate");
            return (Criteria) this;
        }

        public Criteria andProductionstateLessThan(String value) {
            addCriterion("productionstate <", value, "productionstate");
            return (Criteria) this;
        }

        public Criteria andProductionstateLessThanOrEqualTo(String value) {
            addCriterion("productionstate <=", value, "productionstate");
            return (Criteria) this;
        }

        public Criteria andProductionstateLike(String value) {
            addCriterion("productionstate like", value, "productionstate");
            return (Criteria) this;
        }

        public Criteria andProductionstateNotLike(String value) {
            addCriterion("productionstate not like", value, "productionstate");
            return (Criteria) this;
        }

        public Criteria andProductionstateIn(List<String> values) {
            addCriterion("productionstate in", values, "productionstate");
            return (Criteria) this;
        }

        public Criteria andProductionstateNotIn(List<String> values) {
            addCriterion("productionstate not in", values, "productionstate");
            return (Criteria) this;
        }

        public Criteria andProductionstateBetween(String value1, String value2) {
            addCriterion("productionstate between", value1, value2, "productionstate");
            return (Criteria) this;
        }

        public Criteria andProductionstateNotBetween(String value1, String value2) {
            addCriterion("productionstate not between", value1, value2, "productionstate");
            return (Criteria) this;
        }

        public Criteria andSizetypeIsNull() {
            addCriterion("sizetype is null");
            return (Criteria) this;
        }

        public Criteria andSizetypeIsNotNull() {
            addCriterion("sizetype is not null");
            return (Criteria) this;
        }

        public Criteria andSizetypeEqualTo(String value) {
            addCriterion("sizetype =", value, "sizetype");
            return (Criteria) this;
        }

        public Criteria andSizetypeNotEqualTo(String value) {
            addCriterion("sizetype <>", value, "sizetype");
            return (Criteria) this;
        }

        public Criteria andSizetypeGreaterThan(String value) {
            addCriterion("sizetype >", value, "sizetype");
            return (Criteria) this;
        }

        public Criteria andSizetypeGreaterThanOrEqualTo(String value) {
            addCriterion("sizetype >=", value, "sizetype");
            return (Criteria) this;
        }

        public Criteria andSizetypeLessThan(String value) {
            addCriterion("sizetype <", value, "sizetype");
            return (Criteria) this;
        }

        public Criteria andSizetypeLessThanOrEqualTo(String value) {
            addCriterion("sizetype <=", value, "sizetype");
            return (Criteria) this;
        }

        public Criteria andSizetypeLike(String value) {
            addCriterion("sizetype like", value, "sizetype");
            return (Criteria) this;
        }

        public Criteria andSizetypeNotLike(String value) {
            addCriterion("sizetype not like", value, "sizetype");
            return (Criteria) this;
        }

        public Criteria andSizetypeIn(List<String> values) {
            addCriterion("sizetype in", values, "sizetype");
            return (Criteria) this;
        }

        public Criteria andSizetypeNotIn(List<String> values) {
            addCriterion("sizetype not in", values, "sizetype");
            return (Criteria) this;
        }

        public Criteria andSizetypeBetween(String value1, String value2) {
            addCriterion("sizetype between", value1, value2, "sizetype");
            return (Criteria) this;
        }

        public Criteria andSizetypeNotBetween(String value1, String value2) {
            addCriterion("sizetype not between", value1, value2, "sizetype");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}